﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Heavy_Metals
{
    public partial class WRYC_ARIMA : Form
    {
        public WRYC_ARIMA()
        {
            InitializeComponent();
        }
        public DrawCurves dc = new DrawCurves();
        private void XSKYMX_YC_Paint(object sender, PaintEventArgs e)
        {
            Graphics g = e.Graphics;
            Pen p = new Pen(Color.Blue, 2);
            dc.DrawCoordinate(g, p, 100, 200, 400, 150, 20, 20, 2.5, 5.0);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Graphics g = this.CreateGraphics();
            Pen p = new Pen(Color.Blue, 2);
            MessageBox.Show("预测成功", "操作提示");
            double perPicelY = 5.0 / 20;
            double[] data = { 10, 12, 11, 8, 13, 14, 14, 16,12,13,11,11,14,12,9,10,12 };
            dc.DrawCurve(g, p, "浓度", new Point(10, 150), 100, 200, perPicelY, 20, data);
        }

        private void XSKYMX_YC_Load(object sender, EventArgs e)
        {

        }
    }
}
